
Partial Class ItemwiseCustomer
    Inherits System.Web.UI.Page
    Dim _EmployeeId As String
  
    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
        CrystalReportViewer1.Visible = True
        CrystalReportViewer1.ReportSource = "~/Reports/ItemwiseCustomer.rpt"
        CrystalReportViewer1.SelectionFormula = "{BillDetail.ProductId}='" & TextBox1.Text & "'"
    End Sub

    Protected Sub btn1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn1.Click
        Session("EmpId") = _EmployeeId
        Response.Redirect("../Admin/frmReport.aspx")
    End Sub

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        _EmployeeId = Session("EmpId")
    End Sub
End Class
